﻿@model SklepISI.Core.Models.CategoryModel

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "EditCategory";
}

<div class="span5">
    <form class="form-horizontal well" action="EditCategory" method="post">
        <legend>Edycja <strong>@Model.Name</strong></legend>
            @Html.HiddenFor(model => model.Id)
        <div class="control-group">
            @Html.LabelFor(model => model.Name, "Nazwa")
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="control-group">
            @Html.ActionLink("Anuluj", "ListCategories", null, new{@class="btn"})
            <input class="btn btn-large btn-primary" type="submit" value="Zapisz" style="margin-left:65px"/>
        </div>
    </form>
</div>
